/** *****************************************************************************************************
 *  \file     version.h                                                                           *
 *  \brief    This file contains interface header                                                      *
 *                                                                                                      *
 * <table>                                                                                              *
 * <tr><th>Date           <th>Version                                                                   *
 * <tr><td>2025/11/09     <td>1.0.0                               *
 * </table>                                                                                             *
 *******************************************************************************************************/

#ifndef VERSION_H
#define VERSION_H

#define HW_VERSION_VALUE  HW_VERSION_ENCODE(HW_VERSION_MAJOR, HW_VERSION_MINOR, HW_VERSION_PATCH)
#define HW_VERSION_GET_MAJOR(v)   ( (uint8_t)(((uint32_t)(v) >> 24) & 0xFFU) )
#define HW_VERSION_GET_MINOR(v)   ( (uint8_t)(((uint32_t)(v) >> 16) & 0xFFU) )
#define HW_VERSION_GET_PATCH(v)   ( (uint8_t)(((uint32_t)(v) >> 8)  & 0xFFU) )


#endif /* VERSION_H */